package com.byb.server.service.mapper;

import com.byb.server.domain.*;
import com.byb.server.service.dto.SexDTO;

import org.mapstruct.*;

/**
 * Mapper for the entity Sex and its DTO SexDTO.
 */
@Mapper(componentModel = "spring", uses = {})
public interface SexMapper extends EntityMapper <SexDTO, Sex> {
    
    
    default Sex fromId(Long id) {
        if (id == null) {
            return null;
        }
        Sex sex = new Sex();
        sex.setId(id);
        return sex;
    }
}
